package com.eee.machine.beans;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class TChannelProductExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public TChannelProductExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andTChannelProductIdIsNull() {
            addCriterion("t_channel_product_id is null");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdIsNotNull() {
            addCriterion("t_channel_product_id is not null");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdEqualTo(String value) {
            addCriterion("t_channel_product_id =", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdNotEqualTo(String value) {
            addCriterion("t_channel_product_id <>", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdGreaterThan(String value) {
            addCriterion("t_channel_product_id >", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdGreaterThanOrEqualTo(String value) {
            addCriterion("t_channel_product_id >=", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdLessThan(String value) {
            addCriterion("t_channel_product_id <", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdLessThanOrEqualTo(String value) {
            addCriterion("t_channel_product_id <=", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdLike(String value) {
            addCriterion("t_channel_product_id like", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdNotLike(String value) {
            addCriterion("t_channel_product_id not like", value, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdIn(List<String> values) {
            addCriterion("t_channel_product_id in", values, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdNotIn(List<String> values) {
            addCriterion("t_channel_product_id not in", values, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdBetween(String value1, String value2) {
            addCriterion("t_channel_product_id between", value1, value2, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTChannelProductIdNotBetween(String value1, String value2) {
            addCriterion("t_channel_product_id not between", value1, value2, "tChannelProductId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdIsNull() {
            addCriterion("t_machine_id is null");
            return (Criteria) this;
        }

        public Criteria andTMachineIdIsNotNull() {
            addCriterion("t_machine_id is not null");
            return (Criteria) this;
        }

        public Criteria andTMachineIdEqualTo(String value) {
            addCriterion("t_machine_id =", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdNotEqualTo(String value) {
            addCriterion("t_machine_id <>", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdGreaterThan(String value) {
            addCriterion("t_machine_id >", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdGreaterThanOrEqualTo(String value) {
            addCriterion("t_machine_id >=", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdLessThan(String value) {
            addCriterion("t_machine_id <", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdLessThanOrEqualTo(String value) {
            addCriterion("t_machine_id <=", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdLike(String value) {
            addCriterion("t_machine_id like", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdNotLike(String value) {
            addCriterion("t_machine_id not like", value, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdIn(List<String> values) {
            addCriterion("t_machine_id in", values, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdNotIn(List<String> values) {
            addCriterion("t_machine_id not in", values, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdBetween(String value1, String value2) {
            addCriterion("t_machine_id between", value1, value2, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTMachineIdNotBetween(String value1, String value2) {
            addCriterion("t_machine_id not between", value1, value2, "tMachineId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdIsNull() {
            addCriterion("t_channel_id is null");
            return (Criteria) this;
        }

        public Criteria andTChannelIdIsNotNull() {
            addCriterion("t_channel_id is not null");
            return (Criteria) this;
        }

        public Criteria andTChannelIdEqualTo(String value) {
            addCriterion("t_channel_id =", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdNotEqualTo(String value) {
            addCriterion("t_channel_id <>", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdGreaterThan(String value) {
            addCriterion("t_channel_id >", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdGreaterThanOrEqualTo(String value) {
            addCriterion("t_channel_id >=", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdLessThan(String value) {
            addCriterion("t_channel_id <", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdLessThanOrEqualTo(String value) {
            addCriterion("t_channel_id <=", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdLike(String value) {
            addCriterion("t_channel_id like", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdNotLike(String value) {
            addCriterion("t_channel_id not like", value, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdIn(List<String> values) {
            addCriterion("t_channel_id in", values, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdNotIn(List<String> values) {
            addCriterion("t_channel_id not in", values, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdBetween(String value1, String value2) {
            addCriterion("t_channel_id between", value1, value2, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTChannelIdNotBetween(String value1, String value2) {
            addCriterion("t_channel_id not between", value1, value2, "tChannelId");
            return (Criteria) this;
        }

        public Criteria andTProductIdIsNull() {
            addCriterion("t_product_id is null");
            return (Criteria) this;
        }

        public Criteria andTProductIdIsNotNull() {
            addCriterion("t_product_id is not null");
            return (Criteria) this;
        }

        public Criteria andTProductIdEqualTo(String value) {
            addCriterion("t_product_id =", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdNotEqualTo(String value) {
            addCriterion("t_product_id <>", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdGreaterThan(String value) {
            addCriterion("t_product_id >", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdGreaterThanOrEqualTo(String value) {
            addCriterion("t_product_id >=", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdLessThan(String value) {
            addCriterion("t_product_id <", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdLessThanOrEqualTo(String value) {
            addCriterion("t_product_id <=", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdLike(String value) {
            addCriterion("t_product_id like", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdNotLike(String value) {
            addCriterion("t_product_id not like", value, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdIn(List<String> values) {
            addCriterion("t_product_id in", values, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdNotIn(List<String> values) {
            addCriterion("t_product_id not in", values, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdBetween(String value1, String value2) {
            addCriterion("t_product_id between", value1, value2, "tProductId");
            return (Criteria) this;
        }

        public Criteria andTProductIdNotBetween(String value1, String value2) {
            addCriterion("t_product_id not between", value1, value2, "tProductId");
            return (Criteria) this;
        }

        public Criteria andProductNumIsNull() {
            addCriterion("product_num is null");
            return (Criteria) this;
        }

        public Criteria andProductNumIsNotNull() {
            addCriterion("product_num is not null");
            return (Criteria) this;
        }

        public Criteria andProductNumEqualTo(Integer value) {
            addCriterion("product_num =", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotEqualTo(Integer value) {
            addCriterion("product_num <>", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumGreaterThan(Integer value) {
            addCriterion("product_num >", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_num >=", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumLessThan(Integer value) {
            addCriterion("product_num <", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumLessThanOrEqualTo(Integer value) {
            addCriterion("product_num <=", value, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumIn(List<Integer> values) {
            addCriterion("product_num in", values, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotIn(List<Integer> values) {
            addCriterion("product_num not in", values, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumBetween(Integer value1, Integer value2) {
            addCriterion("product_num between", value1, value2, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductNumNotBetween(Integer value1, Integer value2) {
            addCriterion("product_num not between", value1, value2, "productNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumIsNull() {
            addCriterion("product_surplus_num is null");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumIsNotNull() {
            addCriterion("product_surplus_num is not null");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumEqualTo(Integer value) {
            addCriterion("product_surplus_num =", value, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumNotEqualTo(Integer value) {
            addCriterion("product_surplus_num <>", value, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumGreaterThan(Integer value) {
            addCriterion("product_surplus_num >", value, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumGreaterThanOrEqualTo(Integer value) {
            addCriterion("product_surplus_num >=", value, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumLessThan(Integer value) {
            addCriterion("product_surplus_num <", value, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumLessThanOrEqualTo(Integer value) {
            addCriterion("product_surplus_num <=", value, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumIn(List<Integer> values) {
            addCriterion("product_surplus_num in", values, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumNotIn(List<Integer> values) {
            addCriterion("product_surplus_num not in", values, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumBetween(Integer value1, Integer value2) {
            addCriterion("product_surplus_num between", value1, value2, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andProductSurplusNumNotBetween(Integer value1, Integer value2) {
            addCriterion("product_surplus_num not between", value1, value2, "productSurplusNum");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeIsNull() {
            addCriterion("create_datetime is null");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeIsNotNull() {
            addCriterion("create_datetime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeEqualTo(Date value) {
            addCriterion("create_datetime =", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeNotEqualTo(Date value) {
            addCriterion("create_datetime <>", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeGreaterThan(Date value) {
            addCriterion("create_datetime >", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_datetime >=", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeLessThan(Date value) {
            addCriterion("create_datetime <", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeLessThanOrEqualTo(Date value) {
            addCriterion("create_datetime <=", value, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeIn(List<Date> values) {
            addCriterion("create_datetime in", values, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeNotIn(List<Date> values) {
            addCriterion("create_datetime not in", values, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeBetween(Date value1, Date value2) {
            addCriterion("create_datetime between", value1, value2, "createDatetime");
            return (Criteria) this;
        }

        public Criteria andCreateDatetimeNotBetween(Date value1, Date value2) {
            addCriterion("create_datetime not between", value1, value2, "createDatetime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}